import request from '@/utils/request'

// 查询课程统计列表
export function listCoursestatistics(query) {
  return request({
    url: '/coursestatistics/coursestatistics/list',
    method: 'get',
    params: query
  })
}

// 查询课程统计详细
export function getCoursestatistics(id) {
  return request({
    url: '/coursestatistics/coursestatistics/' + id,
    method: 'get'
  })
}

// 新增课程统计
export function addCoursestatistics(data) {
  return request({
    url: '/coursestatistics/coursestatistics',
    method: 'post',
    data: data
  })
}

// 修改课程统计
export function updateCoursestatistics(data) {
  return request({
    url: '/coursestatistics/coursestatistics',
    method: 'put',
    data: data
  })
}

// 删除课程统计
export function delCoursestatistics(id) {
  return request({
    url: '/coursestatistics/coursestatistics/' + id,
    method: 'delete'
  })
}
